package com.jcsz.gulimall.order.feign;

import com.jcsz.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @className: productFeignService
 * @author: 一把Po吉他
 * @date: 2022/11/13 15:58
 * @version: 1.0
 **/
@FeignClient("gulimall-product")
public interface productFeignService {
    @RequestMapping("/product/spuinfo/info/{skuId}")
    R getSpuInfoBySkuId(@PathVariable("skuId") Long skuId);

    @RequestMapping("/product/skuinfo/info/{skuId}")
    R getSkuInfoBySkuId(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skusaleattrvalue/stringlist/{skuId}")
    List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long id);
}
